package com.huluobo.a2308douyindemo.login

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Message
import com.huluobo.a2308douyindemo.R
import com.huluobo.a2308douyindemo.databinding.ActivityContractBinding
import com.huluobo.a2308douyindemo.mvvm.BaseActivity
import com.huluobo.a2308douyindemo.net.MessageEvent
import dagger.hilt.android.AndroidEntryPoint
import org.greenrobot.eventbus.EventBus

@AndroidEntryPoint
class ContractActivity : BaseActivity<ActivityContractBinding, LoginViewModel>() {
    override fun initData() {
    }

    override fun initView() {
        binding.contractAgree.setOnClickListener {
            EventBus.getDefault().post(MessageEvent("同意"))
            finish()
        }

        binding.contractReject.setOnClickListener {
            finish()
        }
    }
}